// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'BomId',
        footer: "Foots",
        cnName: 'Bom',
        name: 'bommodel',
        url: "/bommodel/",
        sortName: "BomId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BomCode":"","BomName":"","BomVersion":"","BomDescription":""};
    const editFormOptions = [[{"dataKey":"物料列表","data":[],"title":"Bom编码","field":"BomCode","type":"select"}],
                              [{"title":"Bom名称","field":"BomName","type":"text"}],
                              [{"title":"Bom版本","field":"BomVersion","type":"text"}],
                              [{"title":"描述","field":"BomDescription","type":"textarea"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'BomId',title:'Bom主键id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BomCode',title:'Bom编码',type:'string',bind:{ key:'物料列表',data:[]},width:120,align:'left',sort:true},
                       {field:'BomName',title:'Bom名称',type:'string',width:120,align:'left'},
                       {field:'BomVersion',title:'Bom版本',type:'string',width:120,align:'left'},
                       {field:'BomType',title:'Bom类型',type:'string',width:120,align:'left'},
                       {field:'ProductItemId',title:'产品物料编号（外键）',type:'int',width:110,align:'left'},
                       {field:'BomRanks',title:'阶别',type:'string',width:120,align:'left'},
                       {field:'ProcessManagementName',title:'工序名称',type:'string',width:120,align:'left'},
                       {field:'ProcessManagementCode',title:'工序编码',type:'string',width:120,align:'left'},
                       {field:'BomDosage',title:'用量',type:'string',width:120,align:'left'},
                       {field:'ParentId',title:'父级id',type:'int',width:110,hidden:true,align:'left'},
                       {field:'BomDescription',title:'描述',type:'string',width:120,align:'left'},
                       {field:'CreateUserName',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}